import { axios } from '@/utils/request'
//获取品牌设置
export function introGetSetting(params) {
  return axios({
    url: '/school/websites/intro-get-setting',
    method: 'post',
    data: params
  })
}
//保存品牌设置
export function introSetting(params) {
  return axios({
    url: '/school/websites/intro-setting',
    method: 'post',
    data: params
  })
}
//学校环境设置
export function environmentGetSetting(params) {
  return axios({
    url: '/school/websites/environment-get-setting',
    method: 'post',
    data: params
  })
}
export function environmentSetting(params) {
  return axios({
    url: '/school/websites/environment-setting',
    method: 'post',
    data: params
  })
}
export function uploadPic(params) {
    //上传图片
    return axios({
      url: '/school/images/upload',
      method: 'post',
      data: params
    })
  }

export function createInfo(params) {
  return axios({
    url: '/school/websites/create',
    method: 'post',
    data: params
  })
}
//
export function websiteList(params) {
  return axios({
    url: '/school/websites',
    method: 'post',
    data: params
  })
}
//启用状态
export function editEnable(params,id) {
  return axios({
    url: `/school/websites/${id}/edit-enable`,
    method: 'post',
    data: params
  })
}
export function deleteList(id) {
  return axios({
    url: `/school/websites/${id}/delete`,
    method: 'post',
    // data: params
  })
}
export function getCreateInfo(id) {
  return axios({
    url: `/school/websites/${id}`,
    method: 'post',
    // data: params
  })
}
export function updateInfo(params,id) {
  return axios({
    url: `/school/websites/${id}/update`,
    method: 'post',
    data: params
  })
}
//获取活动列表
export function activitieList(params) {
  return axios({
    url: `/school/activities`,
    method: 'post',
    data: params
  })
}
//保存
export function setWebsite(params) {
  return axios({
    url: `/school/websites/setting`,
    method: 'post',
    data: params
  })
}
export function getSettingWebsite(params) {
  return axios({
    url: `/school/websites/get-setting`,
    method: 'post',
    data: params
  })
}
//音乐列表
export function getMusicList() {
  return axios({
    url: `/activity/activities/get-bgsound`,
    method: 'post',
  })
}
//导航图片路径
export function getImgUrl() {
  return axios({
    url: `/school/websites/get-icon`,
    method: 'post',
  })
}